﻿namespace Micro.Extensions.Utilities
{
    /// <summary>
    /// 分页请求通用类
    /// </summary>
    public class PageRequest
    {
        /// <summary>
        /// 分页请求页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 分页请求Size
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// Skip
        /// </summary>
        public int Skip => (PageIndex - 1) * PageSize;
    }
}
